-- GENERATED SPELL FOR [Kirin'Var Apprentice] --


function spell0_20409(pUnit, Event) --@Throw Hammer,n/a--
pUnit:FullCastSpellOnTarget(36099,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20409', 500, 1)
end

function Sorts_20409(pUnit, Event)
local choix_sorts_20409 = math.random(0, 0)
if choix_sorts_20409 == 0 then
pUnit:RegisterEvent('spell0_20409', 1, 1)
end
end

function mob20409_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20409', math.random(1500, 3000), 1)
end

function mob20409_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20409_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20409_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20409, 1, 'mob20409_Action')
RegisterUnitEvent(20409, 2, 'mob20409_Leave')
RegisterUnitEvent(20409, 3, 'mob20409_Kill')
RegisterUnitEvent(20409, 4, 'mob20409_Die')
